/**
 * Created with intelliJ IDEA.
 * Description:
 * User:常亚洁
 * Date:20250907
 * Time:19:22
 */
public class Test {
//    求1！+2！+3！+4！+5！=？
public static void main(String[] args) {
    int j = 1;
    int sum = 0;
    while (j <= 5) {
        int i = 1;
        int ret = 1;
        while (i <= j) {
            ret *= i;
            i++;
        }
        j++;
        sum += ret;
        //System.out.println(ret);
    }
    System.out.println(sum);
}
    public static void main6(String[] args) {
//        求1-5的阶乘
        int i=1;
        int ret=1;
        while(i<=5){
            ret*=i;
            i++;
            System.out.println(ret);
        }
    }
    public static void main5(String[] args) {
        int i=1;
       while(i<=10){
           System.out.println(i);
           i++;
       }
    }
    public static void main4(String[] args) {
        boolean flg=(true==false)?(true==false?true:false):false;
//        boolean flg = (true == true) ? (true == false ? false : true ): false;
        System.out.println(flg);
    }
    public static void main3(String[] args) {
        int a=1;
        int b=2;
        System.out.println(a>b&&a==1);
        System.out.println(10<20||10/0==0);
        System.out.println(10>20&10/0==0);
//        &不存在短路；&&存在短路

    }
    public static void main2(String[] args) {
        int a=10;
        int b=20;
        // 注意：在Java中 = 表示赋值，要与数学中的含义区分
        // 在Java中 == 表示相等
        System.out.println(a == b); // false
        System.out.println(a != b); // true
        System.out.println(a < b); // true
        System.out.println(a > b); // false
        System.out.println(a <= b); // true
        System.out.println(a >= b); // false


    }
    public static void main1(String[] args) {
        int a=10;
        int b=a++;
        System.out.println(a);
        System.out.println(b);

         {


        }
       /* int a=10;
        System.out.println(a);
        System.out.println(a);
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);
        Integer b=100;
        System.out.println(b);*/
//
      /* * System.out.println(10);
        int a=10;
        a=9;
        a=8;
        System.out.println(a);
*/    }
}
